<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let students = [
      {uname: '小明', age: 18, gender: '男', hometown: '河北省'},
      {uname: '小红', age: 16, gender: '女', hometown: '河南省'},
      {uname: '小白', age: 19, gender: '男', hometown: '湖北省'},
      {uname: '小王', age: 18, gender: '男', hometown: '山西省'}
    ]
    for (let i = 0; i < students.length; i++) {
      console.log(i)//下标索引
      console.log(students[i])//每个对象
      console.log(students[i].uname)
    }
  </script>
</body>
</html>